package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.baseData.dto.GdpDTO;
import com.css.fxfzypg.modules.baseData.queryParams.GdpQueryParams;
import com.css.fxfzypg.modules.baseData.entity.GdpEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-08-11 16:53
 */
public interface GdpService {


    int saveGdp(GdpEntity gdpEntity);

    Object getGdpById(String id);

    int updateGdp(GdpEntity gdpEntity);

    JSONObject getAllGdpByParams(GdpQueryParams queryParams, int curPage, int pageSize);

    void deleteGdp(String id);

    RestResponse importExcel(MultipartFile file) throws IOException;

    void exportExcel(HttpServletResponse response)throws IOException;

    String getLanderRoles();

    String getLanderProvince();

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
